#ifndef EXAMPLE_H
#define EXAMPLE_H

#include <QObject>
#include "COffscreenSurface.h"
class Example : public COffscreenSurface
{
public:
    explicit Example(QScreen *screen = nullptr) :
        COffscreenSurface(screen)
    {

    }

protected:
    void paintGL(){
        glClearColor(1,0,0,1);
        glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
        swapBuffers();
    }
};

#endif // EXAMPLE_H
